<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>练习3</title>
	</head>
	<body>
		<script type="text/javascript">
			function P(){
			this.mz="汉";
			this.fs="黄";
			}
			P.prototype.mz=function(){
			return mz;
		}
			P.prototype.fs=function(){
			return fs;
		}
			function woman(){
				this.sex="女";
			}
			woman.prototype.sex=function(){
				return sex;
			}
			woman.prototype=new P();
			var woman1=new woman();
			document.write("性别："+woman1.sex+"<br/>民族："+woman1.mz+"<br/>肤色："+woman1.fs);
			
		</script>
	</body>
</html>
